// cover some element-ui styles
@import "~@/styles/variables.scss";

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}


// to fixed https://github.com/ElemeFE/element/issues/2461
// .el-dialog {
//   transform: none;
//   left: 0;
//   position: relative;
//   margin: 0 auto;
// }

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-button--primary {
  background-color: $themeTopToolColor !important;
  border: 0 !important;
  color: #fff !important;
  &:hover {
    background-color: $themeTopToolColor !important;
    border: 0;
    color: #000 !important;
  }
}

.el-tree-node__content {
  height: 40px;
}

.el-tree-node__content:hover {
  color: #276FFB;
  background-color: #f0f4ff;
}

.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  color: #276FFB;
  background-color: #f0f4ff;
}

//单选框
.el-radio__input.is-checked .el-radio__inner {
  color: $themeTopToolColor;
  background-color: $themeTopToolColor;
  border: 0;
}

.el-radio__inner {
  &:hover {
    border: 1px solid $themeTopToolColor;
  }
}

.el-radio__input.is-checked+.el-radio__label {
  color: $themeTopToolColor;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: $themeTopToolColor;
  border-color: $themeTopToolColor;
}

.el-checkbox__input.is-checked+.el-checkbox__label {
  color: $themeTopToolColor;
}
.el-slider__bar{
  background-color: $themeTopToolColor;
}
.el-slider__button{
  border: 2px solid $themeTopToolColor;
}
.el-switch.is-checked .el-switch__core{
  border-color:  $themeTopToolColor;
  background-color:  $themeTopToolColor;
}
.el-switch__label.is-active {
  color: $themeTopToolColor;
}
.el-select-dropdown__item.selected{
  color: $themeTopToolColor;
}
